package com.xia.ndk09_as_code;

import android.util.Log;

import androidx.annotation.NonNull;

public class Student {
    private static final String TAG = Student.class.getSimpleName();
    public String name;
    public int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        Log.d(TAG, "setName: ");
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        Log.d(TAG, "setAge: ");
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
